home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
windows4
/
rentt102.zip
/
RENAMETT.DOC
< prev
next >
Wrap
Text File
|
1992-07-04
|
12KB
|
246 lines
10 June 1992
RENAMETT 1.02
Copyright 1992 by Rufus S. Hendon. All rights reserved.
What RENAMETT does
------------------
RENAMETT is a DOS program (not a Windows program) with the aid of which you
can change the name by which Windows 3.1 refers to a TrueType font. To
accomplish this, RENAMETT alters the specifications of the name in the font
itself and writes the modified font into a new file.
There are three names that are affected by the operation of RENAMETT.
These are (1) the "font family name", e.g. "Arial" or "Bookman Old Style",
(2) the "font subfamily name", e.g. "Regular" or "Bold", and (3) the "full
font name". The TrueType convention is for the full font name to consist of
the font family name followed by the font subfamily name, e.g. "Arial Bold",
except that if the font subfamily name is "Regular" the full font name is
identical with the font family name, e.g. "Arial" for Regular Arial. (A font
that isn't Bold, Italic, or Bold Italic is "Regular".)
TrueType fonts specify names for both the Microsoft and the Macintosh
"platforms" and also give variants of the names for different languages.
RENAMETT changes only the "U.S. English" names for the Microsoft platform. If
the file produced by RENAMETT were used on a Macintosh, the original names
would be in effect. If you are running Windows with a different country and
language selected, the names will likewise be the original names (in the form
specified in the font for the particular language).
Obligatory arguments
--------------------
RENAMETT can operate either interactively or automatically. In either
mode, it requires two arguments. The first is the name of the file containing
the TrueType font the name of which is to be changed. The second argument is
the name for the file into which the modified font is to be written. Suppose,
for example, that you want to modify the SWFTE font called "Copperfield" to
change the name by which the font is shown on Windows font menus to something
other than "Copperfield". The font is stored in the file CPBSWFTE.TTF in your
\WINDOWS\SYSTEM directory. If you want the modified font to be stored in
COOPERBL.TTF in the root directory of your D: drive, you would issue this
command:
renamett \windows\system\cpbswfte.ttf d:\cooperbl.ttf
(With only these two arguments, RENAMETT would run in interactive mode.)
Interactive operation
---------------------
To run RENAMETT in interactive mode, invoke it with only the two
obligatory arguments. After it has loaded the TrueType font, RENAMETT shows
you the three existing names and prompts you to replace them. If you want to
follow the TrueType convention, you will retain the original font subfamily
name and change only the font family name and the font family name portion of
the full font name.
Let's say you want to change the name of the font in CPBSWFTE.TTF from
"Copperfield" to "Cooper Black". To do this interactively, you would issue
the command with only the two file names as arguments:
renamett \windows\system\cpbswfte.ttf d:\cooperbl.ttf
Your interaction with RENAMETT would then go like this:
Current font family name: Cooperfield
Enter new font family name: Cooper Black
Current font subfamily name: Regular
Enter new font subfamily name: Regular
Current full font name: Copperfield
Enter new full font name: Cooper Black
After you responded to the last prompt, RENAMETT would modify the font
accordingly and write the result into D:\COOPERB.TTF.
Automatic operation
-------------------
If you specify the new font family name on the command line following the
second argument, RENAMETT will operate in automatic mode, without prompting
you for new names. In this mode, RENAMETT changes the original font family
name to the one you specify, retains the original font subfamily name, and
creates a new full font name according to the TrueType convention.
For the "Copperfield" to "Cooper Black" example, the command would take this
form:
renamett \windows\system\cpbswfte.ttf d:\cooperbl.ttf Cooper Black
If the original font subfamily name is "Regular", RENAMETT would write into
D:\COOPERBL.TTF a modified version of the font with "Cooper Black" as the
font family name, "Regular" as the font subfamily name, and "Cooper Black" as
the full font name.
If \WINDOWS\SYSTEM\BAISWFTE.TTF contains a font with "Baskerton" as the
font family name, "Italic" as the font subfamily name, and "Baskerton Italic"
as the full font name, execution of the command
renamett \windows\system\baiswfte.ttf d:\baskit.ttf Baskerville
would write into D:\BASKIT.TTF a modified version of the font with
"Baskerville" as the font family name, "Italic" as the font subfamily name, and
"Baskerville Italic" as the full font name.
Because operation is automatic, this mode is suitable for use in a batch
file when you want to process a series of TrueType fonts. The following
batch file, for instance, would modify the four SWFTE "Baskerton" fonts and
the four SWFTE "Carnegie" fonts:
renamett \windows\system\baaswfte.ttf d:\baskrg.ttf Baskerville
renamett \windows\system\babswfte.ttf d:\baskbd.ttf Baskerville
renamett \windows\system\baiswfte.ttf d:\baskit.ttf Baskerville
renamett \windows\system\batswfte.ttf d:\baskbi.ttf Baskerville
renamett \windows\system\craswfte.ttf d:\goudyrg.ttf Goudy Old Style
renamett \windows\system\crbswfte.ttf d:\goudybd.ttf Goudy Old Style
renamett \windows\system\criswfte.ttf d:\goudyit.ttf Goudy Old Style
renamett \windows\system\crkswfte.ttf d:\goudybk.ttf Goudy Old Style
Installing modified fonts in Windows
------------------------------------
If a font is already installed in Windows, you should follow a procedure
such as this in order to substitute the modified font for the original font:
(1) Make sure you have a backup copy of the original .TTF file, in case
you later want to revert to it. (It isn't necessary to back up the .FOT file,
since the Windows font installer can recreate it.)
(2) Copy the file created by RENAMETT to a directory other than
\WINDOWS\SYSTEM.
(3) Start Windows and use the Fonts module of Control Panel to remove the
installed font. (This causes the reference to it in WIN.INI to be removed and
also causes the .FOT file to be deleted from \WINDOWS\SYSTEM.) If you want to
recover the storage occupied by the .TTF file, check the box that requests that
the font file be deleted.
(4) Select "Add ...". On the "Add Fonts" screen that this brings up,
specify the directory where you put the modified .TTF file in step 2. The name
of the font (i.e. its new full font name) should appear. Click on it to select
it and then click the OK button to install the font. The font installer takes
you back to the "Fonts" screen where the installed fonts are shown; the name
of the newly installed font will be added to the list and highlighted, and a
sample of it will be displayed below the list. That's all there is to it. The
new font is immediately available -- you don't have to exit from Windows and
then restart it.
Ascertaining the names specified in a TrueType font
---------------------------------------------------
RENAMETT can also be used to find out what the font family, font subfamily,
and full font names specified in a TrueType font are, without modifying them.
For this purpose, invoke RENAMETT with a single argument giving the name of the
font file. If, for example, you issue the command
renamett \windows\system\arial.ttf
RENAMETT will show you the three names as they are given in the font. No
changes will be made to the font and no new file will be produced.
Possible problems
-----------------
If, in step 4 of the installation procedure, the name of the font doesn't
appear on the "Add Fonts" screen, or if the name of the new font doesn't appear
in the list of installed fonts on the "Fonts" screen after you've supposedly
installed it, or if the sample displayed for the font is obviously garbled or
if no sample is shown, the font installer is telling you that there's something
wrong with the new font. This indicates that RENAMETT has made some mistake in
taking the font apart and putting it together again as a result of which the
modified font is malformed. If you encounter this problem, I'll be glad to try
to track down the cause, but to do so I'll have to have a copy of the original
font to work with.
Running RENAMETT under Windows
------------------------------
RENAMETT is a DOS program, not a Windows program, and it is simpler to
execute it directly from the DOS command line rather than from within Windows
in the DOS prompt window. If, however, you insist on running RENAMETT from
Windows, there is one point of which you should be aware. The default PIF for
DOS programs allots only 128K of memory to the program. RENAMETT can handle
ordinary fonts with this amount of memory, but some unusually large font files
require more memory than the default allocation makes available. If RENAMETT,
when run under Windows in the DOS prompt window, fails with an error code of
10001, 10002, or 10003, it is telling you that Windows didn't give it enough
memory to handle the font you asked it to rename.
The easy solution to this problem is to exit from Windows and issue the
RENAMETT command again from the DOS command line. Otherwise, if you want to be
able to operate within Windows, you'll have to modify the default PIF for DOS
programs or create a special PIF for RENAMETT, specifying in either case a
memory requirement greater than the default 128K. A specification of 256K
should be adequate; if it isn't, you can try higher amounts.
Rufus S. Hendon
804 Still Hill Road
Hamden, CT 06518
CompuServe userID: [73250,2674]
===============================================================================
Revision History
1.01 (21 May 1992) - Initial release.
1.02 (10 June 1992) - Version 1.01 neglected to recalculate the field called
'checkSumAdjustment' in the 'head' table. (This field is a modified
checksum for the entire file.) This omission is corrected in 1.02.
(Fonts processed by RENAMETT 1.01 are acceptable to Windows despite the
incorrect 'checkSumAdjustment' value, because Windows ignores the
checksums in TrueType fonts.)
===============================================================================
NOTICE
RENAMETT is a copyrighted program, the distribution and use of which are
controlled by the author and copyright owner, Rufus S. Hendon. It is not in
the public domain.
The copyright owner has placed the RENAMETT program and this documentation
file in software libraries on the CompuServe Information Service to enable
individuals to download them for their own private, non-commercial use. The
copyright owner authorizes such use without charge.
Any commercial distribution or use of RENAMETT requires the prior consent
of the copyright owner and the payment of a fee for a license to so distribute
or use the program. Bundling RENAMETT for distribution with commercial
products such as software or books is considered commercial use and therefore
requires the permission of the copyright owner and the payment of a license
fee.
RENAMETT is made available without warranty of any kind. The copyright
owner is not liable for any damages resulting from the use of the program.